package com.example.test.conview.view.attributes;

/**
 * Created by songgoo on 2017/8/10.
 * 一维码属性，默认同element一致
 */

public class Barcode1dAttributes extends BaseAttributes {
    /*
    * 字体名称
    * */
    public FontName fontName = new FontName();

    /*
    * 字体大小
    * */
//    public FontSize fontSize = new FontSize();
    public float fontSize = 4.218f;
    public int currentSizeIndex = 22;//当前字体索引
    public String currentSizeName = "小四号";
    /**
     * 水平对齐
     * 0 居左
     * 1 居中
     * 2 居右
     * 3 拉伸
     **/
    public int textAlign = 1;

    /*
    * 编码属性
    * 0 自动
    * 1 TIF25
    * 2 39
    * 3 128
    * 4 库德巴
    * 5 EAN-8
    * 6 EAN-13
    * 7 UPC
    * 8 MSI
    * 9 ISBN
    * */
    public int Encode = 3;

    /*文字位置
    * 0 无文字
    * 1 条码上方
    * 2 条码下方
    * */
    public int fontPlace = 2;

    @Override
    public String toString() {
        return "Barcode1dAttributes{" +
                "fontName=" + fontName +
                ", fontSize=" + fontSize +
                ", currentSizeIndex=" + currentSizeIndex +
                ", currentSizeName='" + currentSizeName + '\'' +
                ", textAlign=" + textAlign +
                ", Encode=" + Encode +
                ", fontPlace=" + fontPlace +
                '}';
    }
}
